
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<base href="http://tecdemo.com/spos3/" />
<title>Sales | Simple POS</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script type="text/javascript">
//<![CDATA[
try{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:0,byc:0,owlid:"cf",bag2:1,mirage2:0,oracle:0,paths:{cloudflare:"/cdn-cgi/nexp/dok9v=2d3f118356/"},atok:"068bec282e5bcde24d436f23dca68da8",petok:"a883650fed38b545361bf511f0d5fd9cc970fdda-1399962182-1800",zone:"tecdemo.com",rocket:"0",apps:{"ga_key":{"ua":"UA-44685333-1","ga_bs":"2"}}}];!function(a,b){a=document.createElement("script"),b=document.getElementsByTagName("script")[0],a.async=!0,a.src="//ajax.cloudflare.com/cdn-cgi/nexp/dok9v=97fb4d042e/cloudflare.min.js",b.parentNode.insertBefore(a,b)}()}}catch(e){};
//]]>
</script>
<link rel="shortcut icon" href="http://tecdemo.com/spos3/assets/images/favicon.ico" />
<link rel="stylesheet" href="http://tecdemo.com/spos3/assets/css/bootstrap.css" type="text/css" charset="utf-8">
<link rel="stylesheet" href="http://tecdemo.com/spos3/assets/css/datatables.css" type="text/css">
<link rel="stylesheet" href="http://tecdemo.com/spos3/assets/css/dash.css" type="text/css">
<link rel="stylesheet" href="http://tecdemo.com/spos3/assets/css/non-responsive.css" type="text/css">
<script src="http://tecdemo.com/spos3/assets/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.tip').tooltip();
	$('.alert').click(function(){ $(this).fadeTo(500, 0).slideUp(500, function(){ $(this).remove(); }); });
	window.setTimeout(function() { $(".alert").fadeTo(500, 0).slideUp(500, function(){ $(this).remove(); }); }, 8000);
});
</script>
<script type="text/javascript">
/* <![CDATA[ */
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-44685333-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

(function(b){(function(a){"__CF"in b&&"DJS"in b.__CF?b.__CF.DJS.push(a):"addEventListener"in b?b.addEventListener("load",a,!1):b.attachEvent("onload",a)})(function(){"FB"in b&&"Event"in FB&&"subscribe"in FB.Event&&(FB.Event.subscribe("edge.create",function(a){_gaq.push(["_trackSocial","facebook","like",a])}),FB.Event.subscribe("edge.remove",function(a){_gaq.push(["_trackSocial","facebook","unlike",a])}),FB.Event.subscribe("message.send",function(a){_gaq.push(["_trackSocial","facebook","send",a])}));"twttr"in b&&"events"in twttr&&"bind"in twttr.events&&twttr.events.bind("tweet",function(a){if(a){var b;if(a.target&&a.target.nodeName=="IFRAME")a:{if(a=a.target.src){a=a.split("#")[0].match(/[^?=&]+=([^&]*)?/g);b=0;for(var c;c=a[b];++b)if(c.indexOf("url")===0){b=unescape(c.split("=")[1]);break a}}b=void 0}_gaq.push(["_trackSocial","twitter","tweet",b])}})})})(window);
/* ]]> */
</script>
</head>
<body>
<div id="wrap">
<div class="navbar navbar-static-top navbar-inverse">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-inverse-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
      <a class="navbar-brand">Simple POS</a> 
    </div>
    <div class="navbar-collapse collapse navbar-inverse-collapse">
      <ul class="nav navbar-nav">
        <li class="dropdown"> <a class="dropdown-toggle tip" data-toggle="dropdown" href="#" data-placement="right" title="Language"><img src="http://tecdemo.com/spos3/assets/images/english.png" style="margin-top:-1px" align="middle"></a>
          <ul class="dropdown-menu" style="min-width: 60px;" role="menu" aria-labelledby="dLabel">
                        <li><a href="http://tecdemo.com/spos3/index.php?module=pos&view=language&lang=english"><img src="http://tecdemo.com/spos3/assets/images/english.png" class="language-img"> &nbsp;&nbsp;
              English              </a></li>
                      </ul>
        </li>
         
        <li><a href="http://tecdemo.com/spos3/index.php?module=settings" class="tip" data-placement="right" title="Home"><i class="glyphicon glyphicon-home"></i></a></li>
        <li><a href="http://tecdemo.com/spos3/index.php?module=settings&view=system_setting" class="tip" data-placement="right" title="Settings"><i class="glyphicon glyphicon-cog"></i></a></li>
                <li><a href="http://tecdemo.com/spos3/index.php?module=pos" class="tip" data-placement="right" title="POS Sale"><i class="glyphicon glyphicon-th-large"></i></a></li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Hi, Admin! <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="http://tecdemo.com/spos3/index.php?module=auth&amp;view=change_password">Change Password</a></li>
            <li><a href="http://tecdemo.com/spos3/index.php?module=auth&amp;view=logout">Logout</a></li>
          </ul>
        </li>
      </ul>
      
      <div class="pull-right">
                <a href="http://codecanyon.net/item/simple-pos-point-of-sale-made-easy/3947976?ref=tecdiary" class="tip btn btn-default btn-sm pull-left external" style="padding:5px 8px; margin: 5px 5px 5px 5px;" title="<strong>Liked?</strong> Let's Purchase<br><strong>Have Suggestion?</strong> Please send email to contact@tecdiary.com" data-html="true" data-placement="bottom"> Buy Now </a>
                      
      <ul class="nav navbar-nav">
        <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
          Products          <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="index.php?module=products">
              List Products              </a></li>
            <li><a href="index.php?module=products&view=add">
              Add Product              </a></li>
            <li><a href="index.php?module=products&view=import">
              Import by CSV              </a></li>
            <li><a href="index.php?module=products&view=sheet">
              Print Barcode              </a></li>
            <li><a href="index.php?module=products&view=labels">
              Print Lablels              </a></li>    
              <li class="divider"></li>
              <li><a href="index.php?module=products&view=categories">
              List Categories              </a></li>
            <li><a href="index.php?module=products&view=add_category">
              Add Category              </a></li>
          </ul>
        </li>
        <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
          Customers          <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="index.php?module=customers">
              List Customers              </a></li>
            <li><a href="index.php?module=customers&view=add">
              Add Customer              </a></li>
          </ul>
        </li>
        <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
          Sales          <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="index.php?module=sales">
              List Sales              </a></li>
            <li><a href="index.php?module=sales&view=holded">
              List Opened Bills              </a></li>
          </ul>
        </li>
        <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
          Reports          <b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="index.php?module=reports&view=daily_sales">
              Daily Sales              </a></li>
            <li><a href="index.php?module=reports&view=monthly_sales">
              Monthly Sales              </a></li>
            <li><a href="index.php?module=reports">
              Sales Reports              </a></li>
              <li class="divider"></li>
              <li><a href="index.php?module=reports&view=top">
              Top Products              </a></li>
              <li><a href="index.php?module=reports&view=products">
              Products Reports              </a></li>
          </ul>
        </li> 
        </ul>
          
        </div>
    </div>
  </div>
</div>


<div class="container"><script>
             $(document).ready(function() {
				 function format_date(oObj) {
					//var sValue = oObj.aData[oObj.iDataColumn]; 
					var aDate = oObj.split('-');
					var aDate1 = aDate[2].split(' ');
										return oObj;
									}
                $('#fileData').dataTable( {
					"aLengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
                    "aaSorting": [[ 0, "desc" ]],
                    "iDisplayLength": 10,
					'bProcessing'    : true,
					'bServerSide'    : true,
					'sAjaxSource'    : 'http://tecdemo.com/spos3/index.php?module=sales&view=getdatatableajax',
					'fnServerData': function(sSource, aoData, fnCallback)
					{
						aoData.push( { "name": "csrf_pos", "value": "c8e09cbe87b230c1ff4f582fca9dc080" } );
					  $.ajax
					  ({
						'dataType': 'json',
						'type'    : 'POST',
						'url'     : sSource,
						'data'    : aoData,
						'success' : fnCallback
					  });
					},
					"oTableTools": {
						"sSwfPath": "assets/media/swf/copy_csv_xls_pdf.swf",
						"aButtons": [
								"csv",
								"xls",
								{
									"sExtends": "pdf",
									"sPdfOrientation": "landscape",
									"sPdfMessage": ""
								},
								"print"
						]
					},
					"aoColumns": [ 
					  { "mRender": format_date },
					  null,
					  null,
					  null,
					  null,
					  null,
					  null,
					  { "bSortable": false }
					]
					
                } );
				
            } );
                    
</script>
    <style>
	.table td { width: 18%; }
	.table td:nth-child(6) { width:14%; } 
	.table td:nth-child(3), .table td:nth-child(4), .table td:nth-child(5), .table td:nth-child(7), .table td:nth-child(8) { width:10%; }
	.table td:nth-child(3), .table td:nth-child(4), .table td:nth-child(5), .table td:nth-child(6) { text-align:right; }
	</style>    

    <h3>Sales</h3>
    
	<p class="introtext">Please use the table below to navigate or filter the results. You can download the table as csv, excel and pdf.</p>

	<table id="fileData" class="table table-striped table-bordered table-condensed table-hover" style="margin-bottom:5px;">
		<thead>
        <tr class="active">
            <th style="width: 180px;">Date</th>
			<th>Customer</th>
            <th>Total</th>
            <th>Tax</th>
            <th>Discount</th>
            <th>Grand Total</th>
            <th>Paid by</th>
            <th style="width:85px; text-align:center;">Actions</th>
		</tr>
        </thead>
		<tbody>
			<tr>
            	<td colspan="8" class="dataTables_empty">Loading data from server</td>
			</tr>
        </tbody>
	</table>

	
	
</div>
<div class="clr"></div>
</div>
<div class="clear"></div>
</div>
</div>
</div>
</div>
<div id="footer">
  <div class="container">
    <p class="credit">Copyright &copy; 2014 Simple POS v3.0 - Page rendered in 0.1353 seconds. 
    <a href="http://tecdiary.net/support/sma-guide/" target="_blank" class="tip" title="Help"><i class="icon-question-sign"></i></a>
    </p>   
  </div>
</div>
<script type="text/javascript" src="http://tecdemo.com/spos3/assets/js/bootstrap.min.js"></script>
<script src="http://tecdemo.com/spos3/assets/js/bootstrap-prettyfile.js"></script> 
<script src="http://tecdemo.com/spos3/assets/js/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="http://tecdemo.com/spos3/assets/js/jquery.dataTables.min.js"></script> 
<script type="text/javascript" charset="utf-8" src="http://tecdemo.com/spos3/assets/media/js/ZeroClipboard.js"></script> 
<script type="text/javascript" charset="utf-8" src="http://tecdemo.com/spos3/assets/media/js/TableTools.min.js"></script> 
<script type="text/javascript" src="http://tecdemo.com/spos3/assets/js/DT_bootstrap.js"></script>
   
</body>
</html>